

export default class SearchAction {
    constructor(comp) {
        this.comp = comp;
    }

    // 确认查询
    toSearch = () => {
        this.pubSub.publish('getMainTableData', {hasSearched: true});
        this.comp.props.dispatch({
            type: 'emp/update',
            payload: {
                hasSearched: true
            }
        })
    }
}